package com.hust.query.dian;

import android.app.Application;
import android.content.SharedPreferences;

import com.tencent.bugly.crashreport.CrashReport;
import com.umeng.update.UmengUpdateAgent;

public class CMApplication extends Application {


    private static CMApplication instance;
    public SharedPreferences userPrefer;


    /**
     * 单例，返回一个实例
     * @return
     */
    public static CMApplication getInstance() {
        if (instance == null) {
        }
        return instance;
    }


	@Override
	public void onCreate() {
		// TODO Auto-generated method stub
		super.onCreate();

        instance = (CMApplication) getApplicationContext();
        userPrefer = getSharedPreferences("user", 0);
        UmengUpdateAgent.setUpdateOnlyWifi(false);
        CrashReport.initCrashReport(this, "900010271", false);

	}


    @Override
    public void onTerminate() {
        super.onTerminate();
    }

}
